/*
		ServEngine framework library
		A library to fast develop JEE online applications
	
		Copyright 2008 José Ignacio de Córdoba Álvaro

		Licensed under the Apache License, Version 2.0 (the "License");
		you may not use this file except in compliance with the License.
		You may obtain a copy of the License at

				http://www.apache.org/licenses/LICENSE-2.0

		Unless required by applicable law or agreed to in writing, software
		distributed under the License is distributed on an "AS IS" BASIS,
		WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
		See the License for the specific language governing permissions and
		limitations under the License.
	
		Jose Ignacio de Cordoba Alvaro
		http://ignacio.decordoba.com
*/

package com.servengine.tag;

import com.servengine.portal.Portal;

import java.util.Collection;
import java.util.List;
import java.util.Set;

import javax.ejb.Local;

@Local
public interface TagManagerLocal
{
	/**
	 * @deprecated
	 */
	public List<TaggedItem> getTaggedItems(String portalid, String module, String itemType);
	/**
	 * @deprecated
	 */
	public List<TaggedItem> getTaggedItems(String portalid, String module, String itemType, String itemId);
	/**
	 * @deprecated
	 */
	public List<TaggedItem> getTaggedItems(String portalid, String module, String itemType, Integer itemId);
	/**
	 * @deprecated
	 */
	public void removeTaggedItems(String portalid, String moduleid, String itemType, String itemId);
	/**
	 * @deprecated
	 */
	public void removeTaggedItems(String portalid, String moduleid, String itemType, Integer itemId);
	/**
	 * @deprecated
	 */
	public TaggedItem createTaggedItem(Portal portal, String module, String itemType, Integer itemId, String body, String locale);
	/**
	 * @deprecated
	 */
	public Collection<TaggedItem> findTaggedItems(String portalid, String module, String itemType, Tag tag);
	/**
	 * @deprecated
	 */
	public Collection<TaggedItem> findTaggedItems(String portalid, String module, String itemType, String tagBody);
	/**
	 * @deprecated
	 */
	public Set<Tag> getTags(String portalid, String module, String itemType, Integer itemId);
	/**
	 * @deprecated
	 */
	public void removeTaggedItem(String portalid, Integer itemId, Integer id);
	public  Tag getTag(String body, String locale, boolean create);
}